<?php
namespace app\api\controller;

use app\common\controller\Api;
use app\api\logic\SubwayLogic;

class Subway extends Api
{
    // 无需登录的接口,*表示全部
    protected $noNeedLogin = ['*'];
    // 无需鉴权的接口,*表示全部
    protected $noNeedRight = ['*'];

    public function list()
    {
        $data = $this->getData([
            // 'type' => 'rq'
        ]);
        $logic = new SubwayLogic();
        $list = $logic->getList($data);
        $this->success('success', $list);
    }
} 